package com.hxht.cmp.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_cmp_favorite")
public class Favorite {
    @Id
    private Long id;

    /**
     * 创建时间
     */
    @Column(name = "date_created")
    private Date dateCreated;

    /**
     * 排期uid
     */
    @Column(name = "plan_uid")
    private String planUid;

    /**
     * 法官用户uid
     */
    @Column(name = "user_uid")
    private String userUid;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取创建时间
     *
     * @return date_created - 创建时间
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * 设置创建时间
     *
     * @param dateCreated 创建时间
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * 获取排期uid
     *
     * @return plan_uid - 排期uid
     */
    public String getPlanUid() {
        return planUid;
    }

    /**
     * 设置排期uid
     *
     * @param planUid 排期uid
     */
    public void setPlanUid(String planUid) {
        this.planUid = planUid == null ? null : planUid.trim();
    }

    /**
     * 获取法官用户uid
     *
     * @return user_uid - 法官用户uid
     */
    public String getUserUid() {
        return userUid;
    }

    /**
     * 设置法官用户uid
     *
     * @param userUid 法官用户uid
     */
    public void setUserUid(String userUid) {
        this.userUid = userUid == null ? null : userUid.trim();
    }
}